package cn.wolfcode.luowowo.acticle.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 景点
 */
@Getter
@Setter
public class Scenery extends BaseDomain {

    //目的地
    private Destination dest;

    //用户信息
    private UserInfo author;

    //景点名
    private String title;

    //景点名副标题
    private String subTitle;

    //信息更新时间
    //@DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date travelTime;

    //景点概要
    private String summary;

    //图片
    private String imgsUrl;

    //评论数
    private Integer replynum;

    //景点内容
    public SceneryContent sceneryContent;
}